<div class="login-body">
    <h3 class="login-box-msg"><%= raw t('zerocms.admin.login.welcome_login_html', default: 'Please Login') %>  </h3>
    <%= render "zerocms/flash_messages" %>
    <%= form_for(@user, as: "user", :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal zerocms_form_validate"  }, :url => zerocms_admin_login_path ) do |f| %>
        <div class="form-group">
            <div class="col-md-12">
                <%= f.text_field :username, :class => "form-control required", autofocus: true, :placeholder => t("zerocms.admin.login.username", default: 'Username') %>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-12">
                <%= f.password_field :password, :class => "form-control required", :placeholder => t("zerocms.admin.login.password", default: 'Password') %>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-12">
                <%= raw zerocms_captcha_tags_if_under_attack("login") %>
            </div>
        </div>

        <div class="row">
            <div class="col-xs-6">
                <div class="checkbox">
                    <label><input name="remember_me" type="checkbox"> <%= t("zerocms.admin.login.remember_me", default: 'Remember me') %> </label>
                </div>
            </div>
            <!-- /.col -->
            <div class="col-xs-6">
                <button type="submit" class="btn btn-primary btn-block btn-flat"><%= t('zerocms.admin.button.log_in', default: 'Log In') %></button>
            </div>
            <!-- /.col -->
        </div>
        <hr>

        <%= raw zerocms_content_before_draw %>
        <%= r = {html: "", f: f}; hooks_run("user_login_form", r); raw(r[:html]); %>

        <div class="row">
            <% if current_site.get_option('permit_create_account', false) %>
                <div class="col-xs-6"><%= t('zerocms.admin.login.do_not_have_account_yet') %><br> <a href="<%= zerocms_admin_register_path %>"><%= t('zerocms.admin.login.create_account', default: 'Create Account') %></a></div>
            <% end %>
            <div class="col-xs-6">
                <a href="<%= zerocms_admin_forgot_path %>" class=""><%= t('zerocms.admin.login.forgot_your_password_int', default: 'Forgot Password') %></a>
            </div>
        </div>
    <% end %>
</div>